    xc vvd<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%--
  Created by IntelliJ IDEA.
  User: Dell
  Date: 2022/4/16
  Time: 22:48
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>英文界面页面</title>
</head>
<body>
<jsp:useBean id="translator" class="bean.TranslatorBean" scope="page"></jsp:useBean>
以下是生成的英文界面：<br/>
<c:forEach var="i" begin="1" end="${sessionScope.textInputNumber}" step="1">
    <c:set var="textFieldName" value="textName${i}" scope="page"/>
<c:set target="${translator}" property="chineseWord" value="${param[textFieldName]}"/>
${translator.englishWord} <input type="text" name="textField${i}"/><br/>
</c:forEach>

<c:set target="${translator}" property="chineseWord" value="${param.checkBoxLabel}" />
${translator.englishWord}
<c:forEach var="i" begin="1" end="${sessionScope.checkOptionsNumber}" step="1">
    <c:set var="optionValue" value="option${i}value" scope="page" />
    <c:set var="optionLabel" value="option${i}Label" scope="page" />
    <c:set target="${translator}" property="chineseWord" value="${param[optionLabel]}" />
    <input type="checkbox" name="checkbox1" value="${param[optionValue]}" />${translator.englishWord}
</c:forEach>

</body>
</html>
